import App from './App'
import store from './store'
import uView from "uview-ui";
Vue.use(uView);
const zfshare = (title,imageUrl) => { //支付码分享
	uni.share({
		provider: "weixin",
		scene: "WXSceneSession",
		type: 2,
		imageUrl: imageUrl,
		success: function (res) {
			console.log("success:" + JSON.stringify(res));
		},
		fail: function (err) {
			console.log("fail:" + JSON.stringify(err));
		}
	});
}
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.prototype.$EventBus = new Vue()
Vue.prototype.zfshare = zfshare
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
    ...App,
	beforeCreate() {
	        Vue.prototype.$bus = this//安装全局事件总线
			
	    }
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
